/**
 * @Description: 公共状态模块
 * @Author: 云
 * @Date: 2023-12-07 15:27:58
 * @LastEditor: 云
 * @LastEditTime: 2023-12-15 11:07:33
 */
export default {
	state: {
		loadingShow: false, // 全局加载弹窗状态
		updateAppShow: false // 全局app更新状态
	},
	getters: {},
	mutations: {
		SET_LOADING_SHOW(state, type) {
			state.loadingShow = type
		},
		SET_UPDATE_APP(state, type) {
			state.updateAppShow = type
		}
	},
	actions: {
		asyncSetLoadingShow({
			commit
		}, type) {
			commit('SET_LOADING_SHOW', type)
		}
	}
}